# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=openssl-d
pkgver=2.0.1
_opensslver=1.1.0h
pkgrel=1
pkgdesc="D version of the C headers for openssl"
url="https://github.com/D-Programming-Deimos/openssl"
arch="noarch !ppc64le !mips !mips64 !armhf !armv7 !x86" # gdc
license="OpenSSL"
makedepends="meson openssl-dev gcc-gdc"
subpackages="$pkgname-dev"
options="!check" # Bindings, so no tests to run
source="https://github.com/D-Programming-Deimos/openssl/archive/v${pkgver}+$_opensslver/openssl-d-${pkgver}+$_opensslver.tar.gz
	58.patch"
builddir="$srcdir/openssl-$pkgver-$_opensslver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="2aefaf48df7bb27fe21f401ebeeb6cf9ce46dcdf31811bcaba4729896af077a613d8ed920a708cc96d4dfaa11cd72a8f15440c6f452d6b594ba04b1baf4489bd  openssl-d-2.0.1+1.1.0h.tar.gz
289f65eac29ea514ee42d6aa2b2fe98c8a2c5e0a3da7843c448fe657e657ba57f79b9f303538f02c60858e1370c62294c745324a343ef73ac259114c055478cd  58.patch"
